class CreatePeople < ActiveRecord::Migration
  def self.up
    create_table :people do |t|
      t.string   "login"
      t.string   "email"
      t.string   "crypted_password",          :limit => 40
      t.string   "salt",                      :limit => 40
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "remember_token"
      t.datetime "remember_token_expires_at"
      t.string   "user_role"
      t.string   "activation_code"
      t.boolean  "activated",                               :default => false, :null => false
      t.boolean  "private",                                 :default => false
      t.string   "fbuid"
      t.datetime "fb_last_updated"
      t.timestamps
    end
    
      add_index :people, ["login"], :name => "index_people_on_login", :unique => true
      add_index :people, ["email"], :name => "index_people_on_login", :unique => true
      add_index :people, ["fbuid"], :name => "index_people_on_login", :unique => true
  end

  def self.down
    drop_table :people
  end
end
